/*
 * Copyright 2010 Michael Nitsche
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

package de.mnit.basis.daten.struktur.gruppe;


/**
 * @author Michael Nitsche
 */
public class Gruppe4<TA,TB,TC,TD> extends Gruppe3<TA,TB,TC> {

	private TD o4;


	protected Gruppe4(TA o1, TB o2, TC o3, TD o4) {
		super(o1,o2,o3);
		this.o4 = o4;
	}


	public static <TA,TB,TC,TD> Gruppe4<TA,TB,TC,TD> neu(TA o1, TB o2, TC o3, TD o4) {
		return new Gruppe4<TA,TB,TC,TD>(o1,o2,o3,o4);
	}

	@SuppressWarnings("unchecked")
	public static <T1,T2,T3,T4> Class<Gruppe4<T1,T2,T3,T4>> gKlasse(Class<T1> c1, Class<T2> c2, Class<T3> c3, Class<T4> c4) {
		return (Class<Gruppe4<T1, T2, T3, T4>>) Gruppe4.neu(null, null, null, null).getClass();
	}

	public TD g4() {
		return o4;
	}

	public String toString() {
		return "Gruppe4("+g1()+","+g2()+","+g3()+","+o4+")";
	}

}
